import { createRequest } from '@/request'

// 学习项目广场
export const teacherLearningPlaza = data => {
  return createRequest({
    url: `/teacher/learning/plaza`,
    method: 'get',
    params: data
  })
}

// 保存
export const teacherLearningSave = data => {
  return createRequest({
    url: `/teacher/learning/save`,
    method: 'post',
		data
  })
}


// 收藏
export const collectLearningCollect = data => {
  return createRequest({
    url: `/teacher/collect-learning/collect/${data.id}`,
    method: 'post',
		data
  })
}

// 取消收藏
export const collectLearningCancelCollect = data => {
  return createRequest({
    url: `/teacher/collect-learning/cancelCollect/${data.id}`,
    method: 'post',
		data
  })
}